package com.factory_method;

public abstract class  Phone {
    private String model; //手机类型
    private double price;//价格

    public Phone(String model,double price){
    	this.model=model;
    	this.price=price;
    }
    //共用行为
    public void open() {
        System.out.println(model + " 正在开机...");
    }
    //抽象方法
    public abstract void call();
}
